package com.matt.domain.roleJob;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


@Data
@Entity
@Table(name = "tb_role_job")
@EqualsAndHashCode(callSuper = true)
public class RoleJob extends Domain {

    @Column(columnDefinition = " varchar(50) COMMENT '任务标题' ")
    private String title;

    @Column(columnDefinition = " varchar(1024) COMMENT '任务内容' ")
    private String content;

    @Column(columnDefinition = "varchar(100) COMMENT '任务图标'")
    private String imgUrl = "";

    @Column(columnDefinition = " int default 10 COMMENT '任务经验' ")
    private Integer expValue=10;

    @Column(columnDefinition = " varchar(64) COMMENT '点击跳转地址，空表示不跳转' ")
    private String actionUrl = "";


    @Column(columnDefinition = " int default 1 COMMENT '任务优先级' ")
    private Integer orderNum=1;

    @Column(columnDefinition = " int default 1 COMMENT '任务排序' ")
    private Integer level=1;


    @Column(columnDefinition = " varchar(50) COMMENT '备注' ")
    private String remark;

    @Column(columnDefinition = " varchar(50) COMMENT '角色ocde' ")
    private String roleCode;
        /**

        ROLE_GARDEN_LEADER	园长
        ROLE_DOCTOR	儿保医生
            ROLE_TEACHER	老师
        ROLE_BUSINESS	销售
        **/

}
